package com.yang.springcloud.alibaba.service;

import com.yang.springcloud.entities.CommonResult;
import com.yang.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @Author yang
 * @Date 2022/8/26
 */
@Component
public class PaymentFallbackService implements PaymentService{
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(4444,"服务降级返回，------PaymentFallbackService",new Payment(id,"errorSerial"));
    }
}
